/*
 * Copyright the original author or authors.
 * 
 * Licensed under the MOZILLA PUBLIC LICENSE, Version 1.1 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *	  http://www.mozilla.org/MPL/MPL-1.1.html
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.googlecode.milib.vo {
	import flash.display.DisplayObject;

	/**
	 * @author Marek Brun
	 */
	public class DisplayObjectPositionVO {

		public var x:Number;
		public var y:Number;
		public var scaleX:Number;
		public var scaleY:Number;
		public var rotation:Number;

		
		public function DisplayObjectPositionVO(x:Number=0, y:Number=0, scaleX:Number=0, scaleY:Number=0, rotation:Number=0) {
			this.x=x;
			this.y=y;
			this.scaleX=scaleX;
			this.scaleY=scaleY;
			this.rotation=rotation;
		}
		
		public static function createByDisplayObject(display:DisplayObject):DisplayObjectPositionVO {
			return new DisplayObjectPositionVO(display.x, display.y, display.scaleX, display.scaleY, display.rotation);
		}
		
		public function clone():DisplayObjectPositionVO {
			return new DisplayObjectPositionVO(x, y, scaleX, scaleY, rotation);
		}
	}
}
